package com.zhuiyun.pm.client.home.mapper;

import com.zhuiyun.pm.client.home.pojo.dto.MyBidDTO;
import com.zhuiyun.pm.client.order.entity.ClientOrder;
import com.zhuiyun.pm.config.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description TODO 我的竞价
 * @ClassName MyBidMapper
 * @Author HH
 * @Date 2023/3/23 16:25
 **/
@Mapper
public interface MyBidMapper extends BaseMapper<ClientOrder> {

    /**
     * @Description 查询我的竞价
     * @Author HH
     * @Date 2023/3/24 10:00
     * @Return com.zhuiyun.pm.result.CommonResult
     * @param userId
     */
    List<MyBidDTO> selectMyBidById(Integer userId);


    /**
    * @Description 根据订单id修改订单状态
    * @Author HH
    * @Date 2023/3/24 16:05
    * @Return int
    * @param clientOrder
    */
    int updateMyOrderById(ClientOrder clientOrder);
}
